package com.helloworld.mapper;

import com.helloworld.pojo.Role;
import com.helloworld.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Mapper
@Repository
public interface RoleMapper {
    List<Role> queryRoleList(String nameLike);

    Role queryRoleById(Integer id);

    int addRole(@Param("t")Role role);

    int updateRole(Role role);

    int deleteRole(Integer id);
}
